import config from './config'
let basePath:any = '' // 接口前缀
if (process.env.NODE_ENV === 'production') { // 正式环境
	basePath = config.API
} else { // 开发环境
	basePath = config.API
}

// 接口列表
let api:any = {
    getBannerList: '/home/getBannerList',
	getMenuList: '/home/getMenuList',
	getSeckillList: '/home/getSeckillList',
	getRecommendList: '/home/getRecommendList',
	getGoodsList: '/home/getGoodsList',
	getCity: '/address/getCity'
}

// 拼合接口前缀
for (let key in api) {
    api[key] = basePath + api[key]
}

export default api